package com.session02;

public class TestStringBuffer {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer("hello");
        sb.append("world");
        sb.insert(5, " ");
        System.out.println(sb);

        StringBuilder sb2 = new StringBuilder("hello");
        sb2.append("world");
        sb2.insert(5, " ");
        System.out.println(sb2);

    }
}
